import request from '@/utils/request';
//搜索文章
export const searchArticleApi = (params: {
  page?: number;
  per_page?: number;
  q: string;
}) => {
  return request({
    url: '/v1_0/search',
    params,
  });
};
//搜索建议
export const searchSuggestApi = (params: { q: string }) => {
  return request({
    url: '/v1_0/suggestion',
    params,
  });
};
